<template>
  <div style="padding: 2%;">
    <div class="flex-column">
      <div class="ledSystemBox" style="width: 18%;">
        <div class="ledSystemBox-header">工作方式</div>
        <div class="ledSystemBox-list" style="color: #aa0000;">
          <span>后端</span>
          <el-divider direction="vertical"></el-divider>
          <span>提供采集信息接口</span>
        </div>
        <div class="ledSystemBox-list" style="color: #00aa00;">
          <span>前端</span>
          <el-divider direction="vertical"></el-divider>
          <span>请求接口显示信息</span>
        </div>
      </div>
      <div style="margin-left: 20%;">
        <el-card class="box-card" shadow="always" body-style="background: #fff1eb;">
          <div slot="header" class="clearfix">
            <span class="card-header">工作原理</span>
            <el-button type="text" class="card-header-btn" @click="isShow = true" v-show="isShow == false">编辑</el-button>
            <el-button class="card-header-btn" type="text" v-show="isShow" @click="isShow = false">提交</el-button>
          </div>
          <div class="el-card-text item">
            {{textValue}}
          </div>
        </el-card>
      </div>
    </div>
    <div class="systemArcHeader m-t2">系统架构图</div>
    <div class="flex-column m-t2">
      <img src="../../../assets/img/tempystemArc.png" width="50%"/>
    </div>
    <el-dialog title="编辑" :visible.sync="isShow" class="dialog-box">
      <el-input type="textarea" v-model="textValue"></el-input>
      <div slot="footer">
        <el-button type="primary" @click="isShow = false">立即创建</el-button>
      </div>
    </el-dialog>
  </div>
</template>

<script>
  export default {
    name: 'temperatureSystemArchitecture',
    data() {
      return {
        textValue: '新增单片机（单片机内部温度传感器）温度采集功能,通过请求获取单片机内部温度传感器信息请求获取当前单片机内部温度传感器相应信息',
        isShow: false
      }
    },
    methods: {
    },
    mounted() {

    }
  }
</script>

<style>

</style>
